NEW_FILE_CODE
<script setup>
import { ref, onMounted, onUnmounted } from 'vue'

// 获取当前用户信息（示例数据）
const currentUser = ref({
  name: '管理员'
})

// 当前时间
const currentTime = ref(new Date().toLocaleString())

// 时间更新定时器
let timer = null

// 更新时间函数
const updateTime = () => {
  currentTime.value = new Date().toLocaleString()
}

onMounted(() => {
  // 每秒更新时间
  timer = setInterval(updateTime, 1000)
})

onUnmounted(() => {
  // 清除定时器
  if (timer) {
    clearInterval(timer)
  }
})
</script>

<template>
  <div class="welcome-container">
    <div class="welcome-content">
      <el-card class="welcome-card">
        <div class="welcome-header">
          <h1> easyA 电竞酒店欢迎您</h1>
          <p class="current-time">{{ currentTime }}</p>
        </div>

        <div class="welcome-image-section">
          <el-image
              style="width: 100%; height: 300px"
              src="/src/assets/logo.png"
              fit="cover"
              class="welcome-image"
          ></el-image>
        </div>

        <div class="welcome-footer">
          <p>祝您使用愉快！</p>
        </div>
      </el-card>
    </div>
  </div>
</template>

<style scoped>
.welcome-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 20px;
  background: #000000;
}

.welcome-content {
  width: 100%;
  max-width: 800px;
}

.welcome-card {
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
  background-color: #1a1a1a;
}

.welcome-header {
  text-align: center;
  padding: 20px;
}

.welcome-header h1 {
  font-size: 1.8rem;
  color: #4b5cc4;
  margin-bottom: 15px;
}

.current-time {
  font-size: 1.2rem;
  color: #4b5cc4;
  margin: 0;
}

.welcome-image-section {
  padding: 20px;
}

.welcome-image {
  border-radius: 10px;
}

.welcome-footer {
  text-align: center;
  padding: 20px;
  color: #4b5cc4;
}

.welcome-footer p {
  margin: 0;
  font-size: 1.1rem;
}
</style>
